//
//  NewsDetailViewModel.h
//  xinhua_sx
//
//  Created by 党阳阳 on 14-5-27.
//  Copyright (c) 2014年 dangyangyang. All rights reserved.
//

#import "RVMViewModel.h"
#import "ReactiveCocoa.h"

@interface NewsDetailViewModel : RVMViewModel



- (instancetype) initWithNewsId:(id)newId;


-(NSURL *)getNewsURL;

/************* 获取新闻详情 *****************
  传回的是一个用于webView加载的 request
 ******************************************/

- (RACSignal *)getNewsDetailWithID:(id)itemId;


/******************新闻点赞************************/
- (RACSignal *)praiseNewsWitdUserId:(id)userId  NewsId:(id)newsId;


/****************新闻取消收藏**********************/
- (RACSignal *)deleteAttentionNewsWithUserId:(id)userId  NewsId:(id)newsId;

/****************新闻收藏 **************************/
- (RACSignal *)attentionNewsWithUserId:(id)userId  NewsId:(id)newsId;

@end
